package org.ben.xintoucloud.javase.oopperson;

/**
 * @Author: Ben
 * @Date: 2019/7/10 16:53
 */
public class Teacher extends Person{
    private String education;
    private String postation;

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getPostation() {
        return postation;
    }

    public void setPostation(String postation) {
        this.postation = postation;
    }

    public Teacher(String name, int age, String education, String postation) {
        super(name, age);
        this.education = education;
        this.postation = postation;
    }

    @Override
    public String sayHello() {
        return super.sayHello()+","+String.format("学历: %s,职位: %s",education,postation);
    }
}
